<div <?php echo $sed_attrs; ?> class="module module-blog-news Latest_news <?php echo $class; echo $style; ?>">
		<?php	if( $title ) {?> <h3 class="title"><?php echo $title; ?></h3><?php } ?>
			
			<ul class="ul-first">
			<?php
			$args = array(
				'posts_per_page'		=> intval($count),
				'no_found_rows'			=> 1,
				'post_status'			=> 'publish',
				'ignore_sticky_posts'	=> 0,
			);
			
			// private
			if( is_user_logged_in() ){
				$args['post_status'] = array('publish','private');
			}
			
			// categories
			if(!empty($category))
			{
				$arg['category__in']=explode(',',$category);
			}
			
			// featured first
			if( $style == 'featured' ){
				$first = true;
			} else {
				$first = false;
			}

			$query_blog = new WP_Query( $args );
			
			while( $query_blog->have_posts() ){
				$query_blog->the_post();
			?>
					<li class="<?php echo implode( ' ', get_post_class() ); ?>">
					
						<div class="photo">
							<a href="<?php echo get_the_permalink(); ?>">
								<?php echo get_the_post_thumbnail( get_the_ID(), 'post-thumbnail', array('class'=>'scale-with-grid' ) ); ?>
							</a>
						</div>
						
						<div class="desc">
						<?php 
							if( $first ){ ?>
								<h4><a href="<?php echo get_the_permalink(); ?>"><?php echo get_the_title(); ?></a></h4>
							<?php } else{ ?>
								<h5><a href="<?php echo get_the_permalink(); ?>"><?php echo get_the_title(); ?></a></h5>
							<?php } ?>
	
							<div class="desc_footer">
								<span class="date"><i class="icon-clock"></i> <?php echo get_the_date(); ?></span>
							</div>
							<?php
							if( $excerpt == '1' || ( $first && $excerpt == 'featured' ) ){ ?> 
							<div class="post-excerpt"><?php echo get_the_excerpt(); ?></div>
							<?php } ?>
						</div>
						
					</li>
					<?php
					if( $first ){
						?>
						</ul>			
						<ul class="ul-second">
					<?php
						$first = false;
					}
			
				}
				
				wp_reset_postdata();?>
			</ul>
			<?php 
			if( $link ) {?>
				<a class="button" href="<?php echo $link ?>">
				 <span class="button_label"><?php echo $link_title; ?></span></a>
			<?php }?>
</div>